**Stata do file for converting Secular America Study 2017-2021 panel data into a CSV file for Mplus for Table 1, Fuel on the Fire**

**Note that all variables have been recoded to range from 0 to 1 and all missing values have been recoded to -99 for Mplus purposes**

**Open 2017-2021 Secular America Study panel data**
**Note: you will need to replace "ADD FOLDER" with the correct information for your files**
use "<ADD FOLDER> FOF_2017-2021 panel.dta"

**Create CSV file for Mplus estimation of Table 1 model, all respondents (and interactive models in Table A3 in SI**
export delimited using "<ADD FOLDER> pan17-21_all.csv", novarnames nolabel replace

**Create CSV file for Mplus estimation of Table 1 model, Democrats**
keep if democrat==1
export delimited using "C:\Users\glayman\Dropbox\Secularism Project\Political Behavior Covid Paper\PB revision\R&R, the sequel\replication files\pan17-21_dems.csv", novarnames nolabel replace

**Create CSV file for Mplus estimation of Table 1 model, Republicans**
keep if democrat==0 & indy==0
export delimited using "C:\Users\glayman\Dropbox\Secularism Project\Political Behavior Covid Paper\PB revision\R&R, the sequel\replication files\pan17-21_reps.csv", novarnames nolabel replace



